package com.itheima.abstractdemo;

/**
*  2025/4/21 20:16
* 
*/
public class TestAnimal {
    public static void main(String[] args) {
        Animal a1 = new Dog();
        Animal a2 = new Cat();

        a1.eat();
        a1.sound();

        a2.eat();
        a2.sound();
    }
}
